package com.zhanghe.study.design_pattern.chain_pattern;

/**
 * 责任链模式
 * @author zh
 * @date 2022/10/22 16:13
 */
public class Main {
    public static void main(String[] args) {
        Handler handler = new ConcreteHandler();

        Handler handler1 = new ConcreteHandler();

        handler.setSuccessor(handler1);

        handler.handleRequest();
    }
}
